package com.example;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new FileReader(new File("/tmp/s_ir.txt")));
        int i = 0;
        int last = 0, tmp = 0;
        while (true) {
            String line = reader.readLine();
            if (line == null) {
                break;
            }
            i++;
            String[] sp = line.split(" ");
            tmp = Integer.parseInt(sp[1]);
            if (last > tmp) {
                System.out.println(line);
            }
            last = tmp;
        }
        reader.close();
    }
}
